<?php
$error = $this->Session->flash();
if(!empty($error)){?>
<div class="warning"><?php echo $error; ?></div>
<?php } ?>
<div id="column-right">
    <?php echo $this->element('sidebar'); ?>
</div>
<div id="content"> <div class="tab" style="margin-bottom:10px;">
        <h1>Account Login</h1>
    </div>
    <div class="login-content">
        <div class="left">
            <h2>New Customer</h2>
            <div class="content" style="border-right:0;height:200px">
                <p><b>Register Account</b></p>
                <p>By creating an account you will be able to shop faster, be up to date on an order's status, and keep track of the orders you have previously made.</p>
                <div style="margin-top:10px;">
                    <?php echo $this->Html->link(
                        'Continue', array('controller' => 'User', 'action' => 'register'),array('class' => 'button')
                    ); ?>
                </div>
            </div>
        </div>
        <div class="right">
            <h2>Returning Customer</h2>
            <?php echo $this->Form->create(null,
                array(
                    'type' => 'post', 'id' => 'frm_login',
                    'autocomplete' => 'off'
                ));
            ?>
                <div class="content" style="margin-bottom:5px;overflow:hidden;height:200px">
                    <p>I am a returning customer</p>
                    <span>Username</span><br>
                    <?php echo $this->Form->input('User.username', array('label' => false, 'class' => 'home_login_input', 'value' => '', 'autocomplete' => 'off')); ?>
                    <br>
                    <span>Password:</span><br>
                    <?php echo $this->Form->input('User.password', array('label' => false, 'type' => 'password',  'class' => 'home_login_input', 'value' => '', 'autocomplete' => 'off')); ?>
                    <?php echo $this->Html->link(
                        'Forgot your password?', array('controller' => 'User', 'action' => 'forgot_pass')
                    ); ?>
                    <br>

                    <input style="height:28px;margin-top:4px;" type="submit" value="Login" class="button">
                </div>
            </form>
        </div>
    </div>
</div>
